﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GeometryViz3D.Model
{
    public class G3DException : Exception
    {
    }

    public class G3DDuplicateIDException : G3DException
    {
        string m_id;

        public G3DDuplicateIDException(string id)
        {
            m_id = id;
        }

        public override string Message
        {
            get
            {
                return string.Format("The ID {0} is already used.", m_id);
            }
        }
    }

    public class G3DPointNotExistException : G3DException
    {
        string m_id;

        public G3DPointNotExistException(string id)
        {
            m_id = id;
        }

        public override string Message
        {
            get
            {
                return string.Format("The point {0} does not exist.", m_id);
            }
        }
    }
}
